package com.itheima.demo2_继承的格式;

public class Animal {
    String name;

    public void eat(){
        System.out.println("吃东西");
    }
    public void cry(){
        System.out.println("吼叫");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
}
